package com.wuye.model;

import com.wuye.web.MenuType;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * Created by zhanchi on 2016/6/14.
 */
public class MenuDetail implements Serializable{
    public MenuDetail(){}
    public MenuDetail(Menu menu){
        this.menuId = menu.getMenuId();
        this.imageFile = menu.getImageFile();
        this.itemName = menu.getItemName();
        this.itemDescription = menu.getItemDescription();
        this.itemType = MenuType.valueOf(menu.getItemType()).getMenuType();
        this.itemUnit = menu.getItemUnit();
        this.itemPrice = menu.getItemPrice();
    }
    private String menuId;
    private String imageFile;
    private String itemName;
    private String itemDescription;
    private String itemType;
    private String itemUnit;
    private Float itemPrice;
    private int isUping;
    private int storeNum;
    public String toString() {
        try {
            return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
        } catch (Exception e) {
            return e.getMessage();
        }
    }

    public int getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(int storeNum) {
        this.storeNum = storeNum;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getImageFile() {
        return imageFile;
    }

    public void setImageFile(String imageFile) {
        this.imageFile = imageFile;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemDescription() {
        return itemDescription;
    }

    public void setItemDescription(String itemDescription) {
        this.itemDescription = itemDescription;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getItemUnit() {
        return itemUnit;
    }

    public void setItemUnit(String itemUnit) {
        this.itemUnit = itemUnit;
    }

    public Float getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(Float itemPrice) {
        this.itemPrice = itemPrice;
    }

    public int getIsUping() {
        return isUping;
    }

    public void setIsUping(int isUping) {
        this.isUping = isUping;
    }
}
